package cn.itcast.usermanage.service;

import java.util.List;

import cn.itcast.usermanage.pojo.EasyUIResult;
import cn.itcast.usermanage.pojo.User;

public interface UserService {

	/**
	 * 分页获取用户信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public EasyUIResult queryEasyUiResult(Integer pageNum, Integer pageSize);
	
	/**测试事务
	 * @param user1
	 * @param user2
	 */
	public void addUser(User user1,User user2);

	/**新增用户
	 * @param user
	 * @return
	 */
	public boolean addUser(User user)throws Exception;

	public Boolean deleteUsers(String[] ids)throws Exception;

	public User queryUserById(Long id);

	public void saveUser(User user);

	public void updateUser(User user);

	public Boolean deleteUser(List<Object> ids);

	

}
